<script>
  import {
    mapMutations
  } from "vuex"
  export default {
    onLaunch: function() {
      this.customNavigation()
    },
    onShow: function() {
      console.log('App Show')
    },
    onHide: function() {
      console.log('App Hide')
    },
    methods: {
      ...mapMutations("m_app", ["customNavigation"])
    }
  }
</script>

<style lang="scss">
  @import "@/uni_modules/uview-ui/index.scss";

  @font-face {
    font-family: 'iconfont';
    src: url('@/static/Icon/iconfont.ttf') format('truetype');
  }

  .iconfont {
    font-family: "iconfont" !important;
    font-size: 24rpx;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /*每个页面公共css */
  page {
    width: 100%;
    height: 100%;
    font-size: 24rpx;
    color: #000;
    line-height: 1.5;
    // 刘海屏
    box-sizing: border-box;
    padding-bottom: 0;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
  }

  image {
    vertical-align: bottom;
  }

  // 状态栏
  .status_bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--status-bar-height);
    background-color: #FFF;
    z-index: 9999;
  }

  // 刘海屏
  .bangs {
    padding-bottom: 0;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
  }
</style>